package com.quanyan.stadium.utils.demo.SpringDemo.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * Created by xiaoxiao on 17/1/18.
 */
@Component
public class DemoListener implements ApplicationListener<DemoEvent>{


    @Override
    public void onApplicationEvent(DemoEvent event) {
        String msg = event.getMsg();
        System.out.println("接收到的信息是:"+msg);
    }
}
